var wii = {};

// 二维码随机字符串生成
// 年月日 当天秒数+毫秒数+编号
// 195060 86400 33 22
wii.qrcodeMaker = function(){
    var strings = '';
    var todayTh = parseInt((new Date().getTime() / 1000 - 1420041600)/86400); // 2015年元旦到今天的天数
    strings += '' + (todayTh % 10000);

    var t = new Date();
    var todayTime = new Date().getTime() - new Date(new Date().toLocaleDateString()).getTime();
    todayTime = parseInt(todayTime / 1000);
    todayTime = parseInt(todayTime % 10000);
    if(todayTime < 10) todayTime = '000'+todayTime;
    else if(todayTime < 100) todayTime = '00'+todayTime;
    else if(todayTime < 1000) todayTime = '0'+todayTime;
    strings += '' + todayTime;

    var ran = parseInt(Math.random() * 100);
    if(ran < 10) ran = '0'+ran;
    strings += '' + ran;
    return strings;
}
